package spring.angularjs.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import spring.angularjs.domain.Status;

@Repository
public class StatusDAOImpl implements StatusDAO {

	@Autowired
	private SessionFactory sessionFactory;
	
	@Override
	public Status getStatus(String statusid) {
		Status status = (Status) sessionFactory.getCurrentSession().get(Status.class, statusid);
		return status;
	}

}
